package com.dxt.rabbitmq.service.direct;

import com.dxt.rabbitmq.config.DirectModeConfig;
import com.dxt.rabbitmq.vo.TestMessage;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class DirectModeConsumer {
    @RabbitListener(queues = DirectModeConfig.QUEUE)
    public void consume(TestMessage msg){
        System.out.println("directModeConsumer get message: " + msg.toString());
    }
}
